/**
 * Created by minigci.he on 16/9/13.
 */
console.log('----------------------')
console.log('test9')

var twice = {
    apply(target, ctx, args){
        return Reflect.apply(...arguments) * 2
    }
}
function sum (left, right){
    return left + right;
}

var proxy = new Proxy(sum, twice);

console.log(proxy(1, 2))
console.log(proxy.call(null, 5, 6))
console.log(proxy.apply(null, [7,8]))